import request from '@/utils/request.js'
// 订单_服务订单列表
export function getServiceLists(query) {
    return request({
        url: '/elder/api.Orders/getServiceLists',
        method: 'post',
        params: query
    })
}
// 订单_服务订单详情
export function getServiceInfo(query) {
    return request({
        url: '/elder/api.Orders/getServiceInfo',
        method: 'post',
        params: query
    })
}
// 订单_取消订单(未接单订单)
export function setServiceOrderToCancel(query) {
    return request({
        url: '/elder/api.Orders/setServiceOrderToCancel',
        method: 'post',
        params: query
    })
}
// 订单_删除订单(已取消 && 已完成订单)
export function setServiceOrderToDel(query) {
    return request({
        url: '/elder/api.Orders/setServiceOrderToDel',
        method: 'post',
        params: query
    })
}

// 订单_商品订单列表
export function getGoodsLists(query) {
    return request({
        url: '/elder/api.Orders/getGoodsLists',
        method: 'post',
        params: query
    })
}

// 订单_商品订单详情
export function getGoodsInfo(query) {
    return request({
        url: '/elder/api.Orders/getGoodsInfo',
        method: 'post',
        params: query
    })
}
// 订单_取消订单(未支付订单)
export function setGoodsOrderToCancel(query) {
    return request({
        url: '/elder/api.Orders/setGoodsOrderToCancel',
        method: 'post',
        params: query
    })
}
// 订单_立即付款(发起支付)
export function setGoodsOrderToInitPay(query) {
    return request({
        url: '/elder/api.Orders/setGoodsOrderToInitPay',
        method: 'post',
        params: query
    })
}
// 订单_删除订单(未支付订单 && 已完成订单)
export function setGoodsOrderToDel(query) {
    return request({
        url: '/elder/api.Orders/setGoodsOrderToDel',
        method: 'post',
        params: query
    })
}
// 订单_确认收货(已支付订单)
export function setGoodsOrderToReceive(query) {
    return request({
        url: '/elder/api.Orders/setGoodsOrderToReceive',
        method: 'post',
        params: query
    })
}
// 订单_立即付款(确认支付)
export function setGoodsOrderToConfirmPay(query) {
    return request({
        url: '/elder/api.Orders/setGoodsOrderToConfirmPay',
        method: 'post',
        params: query
    })
}
// 订单_物流跟踪查询
export function getTrack(query) {
    return request({
        url: '/elder/api.Orders/getTrack',
        method: 'post',
        params: query
    })
}
// 订单_商品评价
export function evaluate(query) {
    return request({
        url: '/elder/api.Orders/setGoodsOrderItemToEvaluate',
        method: 'post',
        params: query
    })
}

// 订单_取消订单(未接单订单)
export function setServiceOrderToComplete(query) {
    return request({
        url: '/elder/api.Orders/setServiceOrderToComplete',
        method: 'post',
        params: query
    })
}

// 订单_取消订单(未支付订单)
export function getGoodsOrderCancelReasonLists(query) {
    return request({
        url: '/elder/api.Orders/getGoodsOrderCancelReasonLists',
        method: 'post',
        params: query
    })
}